import request from '@/utils/request'

// 登录api
export const loginAPI = data =>
  request({ url: '/auth/login', method: 'post', data })

// 退出api
export const logoutAPI = () => request({ url: '/auth/logout' })

// 获取管理员信息api
export const userAPI = () => request({ url: '/auth/currentUser' })
